<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> -->
<!DOCTYPE html>
<html lang="zh-cn">
<%@ include file="/WEB-INF/view-system/include/contentTaglib.jsp"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<link href="${ctx}/static-system/css/customer/settleWithhold.css" rel="stylesheet" type="text/css"/>
	<script src="${ctx}/static-system/js/dataexport/settleWithholdFinance.js" type="text/javascript"></script>
	<title>结清扣款</title>
</head>
<body>

<!--修改对公还款的状态-->
<tags:ajax id="updatePubRepayStatusAjax" url="${ctx }/sms/business/updatePubRepayStatus/${settleWithholdVo.settle_withhold_id }" 
	autoSend="false" type="post" formQuery="#settleWithholdFinanceFrm" formSubmit="true" onSuccess="upRepaySuc"/>
<!-- 根据id查询图片并显示 -->
<tags:ajax id="showPicAjax" url="${ctx }/sms/fileUtil/showImgs" type="post"
	contentType="application/x-www-form-urlencoded"
	autoSend="false" />
	
	
<tags:dialogBody className="m-narrow">
<form id='settleWithholdFinanceFrm' method='post' class='m-cust'>
	<div class='form-horizontal'>
		<div class="form-group row">
		    <div class="col-sm-6 col-md-6">
			    <div class="col-sm-4 col-md-4">
				    <label class="m-label" for="loan_no">贷款编号：</label>
			    </div>
			    <div class="col-sm-8 col-md-8">
				    <input id="loan_no" name="loan_no" value="${settleWithholdVo.loan_no}" class="form-control m-input" readonly>
			    </div>
			</div>
			<div class="col-sm-6 col-md-6">
				<div class="col-sm-4 col-md-4">
					<label class="m-label" for="cust_name">客户姓名：</label>
				</div>
				<div class="col-sm-8 col-md-8">
					<input id="cust_name" name="cust_name" value="${settleWithholdVo.cust_name}" class="form-control m-input" readonly>
				</div>
			</div>
		</div>
		<div class="form-group row">
		    <div class="col-sm-6 col-md-6">
			    <div class="col-sm-4 col-md-4">
				    <label class="m-label" for="chanName">渠道：</label>
			    </div>
			    <div class="col-sm-8 col-md-8">
				    <input id="chanName" name="chanName" value="${chanName}" class="form-control m-input" readonly>
			    </div>
			</div>
			<div class="col-sm-6 col-md-6">
				<div class="col-sm-4 col-md-4">
					<label class="m-label" for="repay_total_yh">应还总金额：</label>
				</div>
				<div class="col-sm-8 col-md-8">
					<input id="repay_total_yh" name="repay_total_yh" value="${settleWithholdVo.repay_total_yh}" class="form-control m-input" readonly>
				</div>
			</div>
		</div>
		<div class="form-group row">
		    <div class="col-sm-6 col-md-6">
			    <div class="col-sm-4 col-md-4">
				    <label class="m-label" for="dk_type">还款类型：</label>
			    </div>
			    <div class="col-sm-8 col-md-8">
				    <select class="form-control m-input" id="dk_type" name="dk_type" >
				        <option value="028002" selected="selected" >提前结清</option>
				    </select>
			    </div>
			</div>
			<div class="col-sm-6 col-md-6">
				<div class="col-sm-4 col-md-4">
					<label class="m-label" for="channelType">交易时间：</label>
				</div>
				<div class="col-sm-8 col-md-8">
					<tags:datepicker dateFormat="yyyy-MM-dd" name="tran_time" 
						dateType="date" id="tran_time"  value="${settleWithholdVo.tran_time}"/>
				</div>
			</div>
		</div>
		<div class="form-group row">
		    <div class="col-sm-6 col-md-6">
			    <div class="col-sm-4 col-md-4">
				    <label class="m-label" for="tran_serial_no">交易流水号：</label>
			    </div>
			    <div class="col-sm-8 col-md-8">
				    <input name="tran_serial_no" id="tran_serial_no" value="${settleWithholdVo.tran_serial_no}" class="form-control m-input" disabled>
			    </div>
			</div>
			<div class="col-sm-6 col-md-6">
				<div class="col-sm-4 col-md-4">
					<label class="m-label" for="tran_amt">交易金额：</label>
				</div>
				<div class="col-sm-8 col-md-8">
					<input name="tran_amt" id="tran_amt" value="${settleWithholdVo.tran_amt}" class="form-control m-input" >
				</div>
			</div>
		</div>
		<div class="form-group row">
		    <div class="col-sm-6 col-md-6">
			    <div class="col-sm-4 col-md-4">
				    <label class="m-label" for="dk_status">状态：</label>
			    </div>
			    <div class="col-sm-8 col-md-8">
				    <select class="form-control m-input" id="dk_status" name="dk_status">
				        <option value="038003" >已还</option>
				        <option value="038001" >取消</option>
				    </select>
			    </div>
			</div>
		</div>
		<div class="form-group row">
			<div class="col-sm-12 col-md-12">
				<div class="col-sm-2 col-md-2">
					<label class="m-label" for="remark">说明：</label>
				</div>
				<div class="col-sm-8 col-md-8">
					<textarea name="remark" id="remark" rows="" cols="" class="form-control m-input" disabled>${settleWithholdVo.remark}</textarea>
				</div>
			</div>
		</div>
		<div class="form-group row">
		    <div class="col-sm-12 col-md-12">
			    <div class="col-sm-2 col-md-2">
				    <label class="m-label" for="reason">原因：</label>
			    </div>
			    <div class="col-sm-8 col-md-8">
				    <textarea name="reason" id="reason" rows="" cols="" class="form-control m-input" >${settleWithholdVo.reason}</textarea>
			    </div>
			    
			</div>
		</div>
		<div class="form-group row">
			<div class="col-sm-6 col-md-6">
				<div class="col-sm-4 col-md-4">
					<label>交易凭证：</label>
				</div>
				<div class="col-sm-8 col-md-8" id="uploadPic"><!-- 上传凭证显示区 -->
					<!-- <img alt="" src="" width="200" class="img-thumbnail uploadPic"
						data-large-url="" data-large-content="交易凭证" title="点击查看大图"> -->
				</div>
			</div>
		</div>
		<tags:dialogFooter>
			<div id="financeButton">
				<button type="button" onclick="updatePubRepayStatus()" class="btn btn-info" >提交计划</button>
				<button type="reset" class="btn btn-default" data-dismiss="modal">关闭</button>
			</div>
		</tags:dialogFooter>
	</div>
</form>
</tags:dialogBody>
<script type="text/javascript">
$(function(){
//	showImg();
	var voucher_picid = "${settleWithholdVo.voucher_picid}";
	console.log(voucher_picid);
	showImg(voucher_picid);
});
</script>
</body>
</html>